package site.weiyikai.springbootipstarter.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import site.weiyikai.springbootipstarter.properties.IpProperties;
import site.weiyikai.springbootipstarter.service.IpCountService;

/**
 * @author 程序员小魏
 * @create 2022-12-11 15:39
 */

@Import({IpProperties.class})
@EnableScheduling
public class IpAutoConfiguration {
    @Bean
    public IpCountService ipCountService(){
        return new IpCountService();
    }
}
